package com.caishi.lkx.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author by liyihua
 * @date : 2022-05-16 17:03
 */
@Configuration
public class ESConfig {
    @Value("${spring.application.name}")
    private String indexName;

    @Bean
    public String esIndexName() {
        return indexName == null ? "" : indexName;
    }
}
